package com.ruoyi.hr.service.impl.personstatisticsanalysis;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.mapper.personstatisticsanalysis.EmpResumeMapper;
import com.ruoyi.hr.mapper.personstatisticsanalysis.PersonStatisticsanalysisMapper;
import com.ruoyi.hr.service.personstatisticsanalysis.EmpResumeService;
import com.ruoyi.hr.service.personstatisticsanalysis.PersonStatisticsanalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EmpResumeServiceImpl implements EmpResumeService {

    @Autowired
    EmpResumeMapper empResumeMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public Map findBasicInfo(String eid) {
        return empResumeMapper.findBasicInfo(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findContractInfo(String eid) {
        return empResumeMapper.findContractInfo(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> workInfo(String eid) {
        return empResumeMapper.workInfo(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> proInfoMap(String eid) {
        return empResumeMapper.proInfoMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> educationInfoMap(String eid) {
        return empResumeMapper.educationInfoMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> trainingInfoMap(String eid) {
        return empResumeMapper.trainingInfoMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> empChangeInfoMap(String eid) {
        return empResumeMapper.empChangeInfoMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> salaryInfoMap(String eid) {
        return empResumeMapper.salaryInfoMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> beneChangeMap(String eid) {
        return empResumeMapper.beneChangeMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> attendChangeMap(String eid) {
        return empResumeMapper.attendChangeMap(eid);
    }

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> pEmpResultInfoMap(String eid) {
        return empResumeMapper.pEmpResultInfoMap(eid);
    }
}
